Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / ContainSingle Method
In This Topic
    ContainSingle Method
    In This Topic
    Expects the current collection to contain only a single item.
    Overload List
    OverloadDescription
    Expects the current collection to contain only a single item.  
    Expects the current collection to contain only a single item matching the specified predicate.  
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also